package micro86.operation;

import micro86.engine.Memory;
import micro86.engine.State;
import micro86.engine.parametres.IntParameter;

/**
 * (c) Kate Luzhevskaya 2013
 */
public class PrintIntParam implements IOperation{
    IntParameter parameter;

    public PrintIntParam(IntParameter parameter){
        this.parameter = parameter;
    }

    @Override
    public void execute(State state, Memory memory) {
        int parameterValue = parameter.get(state);
        System.out.print(parameterValue);
    }

}
